// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import top.geeke.entity.base.EntityBaseId;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperTable;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统通知公告用户表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_notice_user")
@SuperTable(value = "系统通知公告用户表", isSystem = true)
public class SysNoticeUser extends EntityBaseId implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "通知公告ID")
    private Long noticeId;

    @SuperColumn(value = "用户ID")
    private Long userId;

    @SuperColumn(value = "阅读时间", nullable = true)
    private LocalDateTime readTime;

    @JsonIgnore
    @JsonIgnoreProperties
    @TableField(exist = false)
    private SysUser user;

    @JsonIgnore
    @JsonIgnoreProperties
    @TableField(exist = false)
    private SysNotice notice;
}
